package utn.frd.domain;

import java.io.Serializable;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Course implements Serializable {

	private static final long serialVersionUID = 7659965253418159668L;
		
	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	private Long id;
	@Persistent
	private String name;
	@Persistent
	private Long[] taken;  //taken courses required
	@Persistent
	private Long[] approved; //approved courses required
	
	/*
	 * CONSTRUCTORES
	 */
	public Course(){}
	
	/*
	 * GETTERS & SETTERS
	 */
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Long[] getTaken() {
		return taken;
	}
	public void setTaken(Long[] taken) {
		this.taken = taken;
	}
	public Long[] getApproved() {
		return approved;
	}
	public void setApproved(Long[] approved) {
		this.approved = approved;
	}

}
